import { request, HttpMethod, restartTimes, RequestConfig } from './request'
// 病历记录相关操作

export const getAllRecord = (patientUid: string | number) => {
  const config = <RequestConfig>{
    url: `/patient/patientCase/get_patient_case`,
    method: HttpMethod.POST,
    data: {
      patientUid: patientUid,
    }
  }
  return request(config);
}

export const getRecord = (patientUid: string | number, caseId: string | number) => {
  const config = <RequestConfig>{
    url: `/patient/patientCase/get_patient_case`,
    method: HttpMethod.POST,
    data: {
      patientUid: patientUid,
      caseId: caseId
    }
  }
  return request(config);
}